import request from '@/utils/request'
import qs from 'qs'

// 获取验证码
export function getImageCode() {
  return request({
      url: "/api/tools/captcha/img/get",
      method: "post"
  });
}


// 检验验证码
export function postVerificationImageCode(params) {
  return request({
      url: "/api/tools/captcha/img/validate",
      method: "post",
      params
  });
}

// 登陆
export function login(data) { 
  return request({
      url: "/api/admin/login/captcha/img",
      method: "post",
      data: qs.stringify(data)
  });
}
